package com.liuheng.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuheng.spzx.model.dto.product.CategoryBrandDto;
import com.liuheng.spzx.model.entity.product.Brand;
import com.liuheng.spzx.model.entity.product.CategoryBrand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {
    List<CategoryBrand> findByPage(Page<CategoryBrand> page,@Param("params") CategoryBrandDto categoryBrandDto);

    List<Brand> findBrandByCategoryId(Long categoryId);
}
